package org.zebra.file.excel.annotation;

import org.zebra.file.excel.core.DefaultExcelListener;
import org.zebra.file.excel.core.ExcelListener;

import java.lang.annotation.*;

/**
 * 导入excel
 *
 * @author zhanghongbin
 */
@Documented
@Target({ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ImportExcel {

    /**
     * 前端上传字段名称 file
     *
     * @return 文件名
     */
    String fileName() default "file";

    /**
     * 读取的监听器类
     *
     * @return readListener
     */
    Class<? extends ExcelListener> readListener() default DefaultExcelListener.class;
}
